import entryFactory from 'bpmn-js-properties-panel/lib/factory/EntryFactory';

import { is } from 'bpmn-js/lib/util/ModelUtil';

export default function (group, element, translate) {
  // Only return an entry, if the currently selected
  // element is a start event.

  if (is(element, 'bpmn:ServiceTask')) {
    group.entries.push(
      entryFactory.textField(translate, {
        id: 'propa',
        description: 'Label for propa',
        label: 'propa',
        modelProperty: 'propa',
      }),
    );

    group.entries.push(
      entryFactory.checkbox(translate, {
        id: 'propb',
        // description: 'Label for propb',
        label: 'propb',
        modelProperty: 'propb',
      }),
    );

    group.entries.push(
      entryFactory.selectBox(translate, {
        id: 'propc',
        // description: 'Label for propb',
        label: 'propc',
        modelProperty: 'propc',
        selectOptions: [
          { name: 'a-n', value: 'a-v' },
          { name: 'b-n', value: 'b-v' },
          { name: 'c-n', value: 'c-v' },
        ],
      }),
    );
  }
}
